package a.f;

import a.c.bb;
import a.c.e;
import a.c.x;
import a.d.s;

public class ab
  extends r
{
  private double g;
  private double h;
  public static int i;
  
  public ab(rc paramrc, double paramDouble1, double paramDouble2)
  {
    this.h = paramDouble2;
    this.g = paramDouble1;
    a(paramrc);
  }
  
  public ab(rc paramrc)
  {
    this(paramrc, 1.0D, 1.0D);
  }
  
  public boolean canLayout(o paramo)
  {
    return b(paramo);
  }
  
  public void doLayout(o paramo)
  {
    boolean bool = o.eg;
    int j = o.dg;
    x localx = paramo.B();
    bb localbb = new bb();
    a.c.w localw = paramo.v();
    e locale;
    s locals;
    do
    {
      do
      {
        if (!localw.e()) {
          break;
        }
        locale = localw.d();
        locals = paramo.u(locale);
        if (j != 0) {
          break label174;
        }
        if (locals.b() >= this.g)
        {
          if (bool) {
            continue;
          }
          if (locals.c() >= this.h) {}
        }
        else
        {
          localx.a(locale, locals);
          paramo.b(locale, Math.max(this.g, locals.b()), Math.max(this.h, locals.c()));
          localbb.add(locale);
        }
        localw.f();
      } while (j == 0);
      a(paramo);
    } while (bool);
    localw = localbb.l();
    label174:
    do
    {
      if (!localw.e()) {
        break;
      }
      locale = localw.d();
      locals = (s)localx.get(locale);
      a.d.w localw1 = paramo.o(locale);
      paramo.a(locale, locals);
      paramo.a(locale, localw1);
      localw.f();
      if ((!bool) && (j != 0)) {
        return;
      }
    } while (j == 0);
    if (!bool) {
      paramo.a(localx);
    }
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.ab
 * JD-Core Version:    0.7.0.1
 */